using System.Collections.Generic;

namespace IQIGame.Onigao.GamePlay
{
    [SerializableGroup(SerializableGroup.BehavScript)]
    public partial class ConfigBehavScript
    {
        public const short StartId = 1;
        public Dictionary<short, ConfigBehavScriptNode> nodes;

        public ConfigBehavScriptNode GetStartNode()
        {
            if (nodes.TryGetValue(StartId, out var n))
            {
                return n;
            }
            return null;
        }
    }
}
